<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head th:fragment="head(title)">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title th:replace="${title}">后台框架页</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css">
    <link rel="stylesheet" href="../../static/css/me.css" th:href="@{/css/me.css}">
    <link rel="stylesheet" href="../../static/css/background.css" th:href="@{/css/background.css}">
    <link rel="stylesheet" href="../../static/lib/editormd/css/editormd.min.css" th:href="@{/lib/editormd/css/editormd.min.css}">
</head>
<body>

<nav th:fragment="menu(n)" class="ui top fixed menu">
    <!--流动导航组件-->
    <div class="m-container">
        <div class="ui secondary stackable menu">
            <div class="item">
                <h2 class="ui header">Ended</h2>
            </div>&nbsp;
            <div class="ui dropdown item m-item m-mobile-hide" th:classappend="${n==1} ? 'active'">
                <div class="text">
                    <i class="anchor icon"></i>博客管理
                </div>
                <div class="menu">
                    <a href="#" th:href="@{/admin/blogs}" class="item">博客列表</a>
                    <a href="#" th:href="@{/admin/blogs/input}" class="item">博客发布</a>
                </div>
            </div>
            <div class="ui dropdown item m-item m-mobile-hide" th:classappend="${n==2} ? 'active'">
                <div class="text">
                    <i class="idea icon"></i>分类管理
                </div>
                <div class="menu">
                    <a href="#" th:href="@{/admin/types}" class="item">分类列表</a>
                    <a href="#" th:href="@{/admin/types/input}" class="item">新增分类</a>
                </div>
            </div>
            <div class="ui dropdown item m-item m-mobile-hide" th:classappend="${n==3} ? 'active'">
                <div class="text">
                    <i class="idea icon"></i>标签管理
                </div>
                <div class="menu">
                    <a href="#" th:href="@{/admin/tags}" class="item">标签列表</a>
                    <a href="#" th:href="@{/admin/tags/input}" class="item">新增标签</a>
                </div>
            </div>
            <a href="#" th:href="@{/admin/message}" class="m-item item m-mobile-hide" th:classappend="${n==4} ? 'active'">
                <i class="comment alternate icon"></i>留言管理</a>
            <a href="#" th:href="@{/admin/about}" class="m-item item m-mobile-hide" th:classappend="${n==5} ? 'active'">
                <i class="info icon"></i>博主信息</a>
            <div class="m-item item m-mobile-hide">
                <a class="ui basic vertical animated circular button" href="#" target="_blank" th:href="@{/admin/logout}"
                   tabindex="0">
                    <div class="hidden content">注销</div>
                    <div class="visible content">
                        <i class="cloud icon"></i>
                    </div>
                </a>
            </div>
            <div class="m-item item m-mobile-hide">
                <a class="ui basic vertical animated circular button" href="#" target="_blank" th:href="@{/home}"
                   tabindex="0">
                    <div class="hidden content">主页</div>
                    <div class="visible content">
                        <i class="paper plane icon"></i>
                    </div>
                </a>
            </div>
        </div>
    </div>
    <a href="#" class="ui menu toggle basic icon button m-top-right m-mobile-show m-bg">
        <i class="sidebar icon"></i>
    </a>
</nav>

<footer th:fragment="footer" class="ui m-bg segment m-padded-tb-huge">
    <div class="ui center aligned container">
        <div class="ui divided stackable grid"> <!--布局会分成16份-->
            <div class="four wide column">
                <img src="../../static/images/plug/WeChat.PNG" th:src="@{/images/plug/WeChat.PNG}" alt="WeChatQR Code" class="ui centered rounded image"
                     style="width: 110px">
            </div>
            <div class="four wide column">
                <h4 class="ui header m-opacity-small">博客简介</h4>
                <p class="m-text-thin m-text-spaced m-opacity-small">
                    创建此博客是为了提供一个平台来供自己分享生活、自己的所见所闻所感、以及分享学习心得和资源......
                </p>
            </div>
            <div class="four wide column">
                <h4 class="ui header m-opacity-small">联系我</h4>
                <div class="ui link list ">
                    <a href="#" class="item">QQ：3320014521</a>
                    <a href="#" class="item">e-mail：woshihauhuaa@outlook.com</a>
                </div>
            </div>
            <div class="four wide column">
                <div class="three wide column">
                    <br>
                    <br>
                    <p class="m-text-thin m-text-spaced">
                        愿你编码半生，归来仍是少年......
                    </p>
                </div>
            </div>
        </div>
        <div class="ui inverted section divider"></div>
        <p class="m-text-thin m-opacity-mini">Copyright © 2020-2021 YanYunHua Designed by YanYunHua</p>
    </div>
</footer>

<th:block th:fragment="script">
<script src="https://cdn.jsdelivr.net/npm/jquery@3.2/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.js"></script>
<script src="../../static/lib/editormd/editormd.min.js" th:src="@{/lib/editormd/editormd.min.js}"></script>
</th:block>

</body>
</html>